//
//  User.m
//  iFlower
//
//  Created by thohd on 8/17/10.
//  Copyright 2010 iNIL.me. All rights reserved.
//

#import "User.h"

NSString* const kLoginData=@"is_remember=N&usertype=C&mode=login&username=%@&password=%@";
NSString* const kRegisterData=@"usertype=C&title=Mr.&firstname=%@&lastname=%@&b_address=%@&b_city=%@&b_state=%@&b_country=%@&b_zipcode=%@&phone=%@&email=%@&uname=%@&passwd1=%@&passwd2=%@";

@implementation User

@synthesize username = username_;
@synthesize password = password_;
@synthesize billingTittle = billingTittle_;
@synthesize billingFirstName = billingFirstName_;
@synthesize billingLastName = billingLastName_;
@synthesize billingAddress = billingAddress_;
@synthesize billingCounty = billingCounty_;
@synthesize billingCountry = billingCountry_;
@synthesize billingState = billingState_;
@synthesize billingCity = billingCity_;
@synthesize billingZipcode = billingZipcode_;
@synthesize billingCompany = billingCompany_;
@synthesize tittle = tittle_;
@synthesize firstName = firstName_;
@synthesize lastName = lastName_;
@synthesize address = address_;
@synthesize county = county_;
@synthesize country = country_;
@synthesize state = state_;
@synthesize city = city_;
@synthesize zipcode = zipcode_;
@synthesize company = company_;
@synthesize shippingTittle = shippingTittle_;
@synthesize shippingFirstName = shippingFirstName_;
@synthesize shippingLastName = shippingLastName_;
@synthesize shippingState = shippingState_;
@synthesize shippingCity = shippingCity_;
@synthesize shippingZipcode = shippingZipcode_;
@synthesize shippingAddress = shippingAddress_;
@synthesize shippingCounty = shippingCounty_;
@synthesize shippingCountry = shippingCountry_;
@synthesize shippingCompany = shippingCompany_;
@synthesize email = email_;
@synthesize phone = phone_;
- (NSString*) loginData
{
	return [NSString stringWithFormat:kLoginData, username_,password_];
}
- (NSString*) registerData
{
	return [NSString stringWithFormat:kRegisterData, firstName_,lastName_, address_, city_, state_, country_, zipcode_, self.phone,self.email,username_,password_,password_];
}

@end
